package com.tencreat.service.mall;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.mall.MallPoster;

import java.util.List;

/**
 * 海报配置Service接口
 *
 * @author tencreat
 * @date 2022-01-10
 */
public interface IMallPosterService  extends IService<MallPoster> {
    /**
     * 查询海报配置
     *
     * @param id 海报配置ID
     * @return 海报配置
     */
    public MallPoster selectMallPosterById(ReqIdParam id);

    /**
     * 查询海报配置列表
     *
     * @param mallPoster 海报配置
     * @return 海报配置集合
     */
    public List<MallPoster> selectMallPosterList(MallPoster mallPoster);

    /**
     * 新增海报配置
     *
     * @param mallPoster 海报配置
     * @return 结果
     */
    public int insertMallPoster(MallPoster mallPoster);

    /**
     * 修改海报配置
     *
     * @param mallPoster 海报配置
     * @return 结果
     */
    public int updateMallPoster(MallPoster mallPoster);

    /**
     * 批量删除海报配置
     *
     * @param ids 需要删除的海报配置ID
     * @return 结果
     */
    public int deleteMallPosterByIds(ReqIdsParam ids);

    /**
     * 删除海报配置信息
     *
     * @param id 海报配置ID
     * @return 结果
     */
    public int deleteMallPosterById(ReqIdParam id);

    public int reSortOrderReduce(MallPoster mallPoster);
    public int reSortOrderPlus(MallPoster mallPoster);
}
